<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@page import="model.JsfStaff"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">

<title>客户信息</title>
</head>
<body>
<%
	JsfStaff staff = (JsfStaff) session.getAttribute("staff");
	int ps = staff.getStatus();
%>
<%if( ps == 1 ){  %>
<s:form method="post" action="/hdjl/neibor_add.jsp" id="form2">
	<table class="table table-condensed table-hover table-striped">
		
			<tr>
				<td width="150">客户姓名</td>
				<td width="150">客户电话</td>
				<%if( ps == 1 ){  %>
				<td width="150">操作</td>
				<%} %>
			</tr>
			<s:iterator value="clientList" var="var">
				<tr>
					<td width="150">
					<a href="client_findById?clientId=<s:property value="#var.id" />&level=1">
					<s:property value="#var.name" />
					</a>
					</td>
					<td width="150">
					<s:property value="#var.phoneNum" />
					</td>
					<%if( ps == 1 ){  %>
					<td width="150">
					<input type="button" value="修改" class="btn btn-success"
					onclick="location.href ='client_findById?clientId=<s:property value="#var.id"/>&level=3';" />
					
					<input type="button" value="删除" class="btn btn-warning"
					onclick="if(confirm('确定删除？'))location.href ='client_delById?clientId=<s:property value="#var.id"/>';" />
					</td>
					<%} %>
				</tr>
			</s:iterator>
	</table>
</s:form>
<%} %>
</body>
</html>